package com.jsgt.greekfire.common.http

import com.jsgt.greekfire.bean.*
import com.jsgt.greekfire.dao.model.MarketBean
import retrofit2.http.GET
import retrofit2.http.Path

interface OKEXService {
    /**
     * 行情详情-k线
     */
    @GET("candles/{instrument_id}/{granularity}")
    suspend fun getKLineData(
        @Path("instrument_id") productId: String,
        @Path("granularity") granularity: Int
    ): ResponseData<List<List<String>>>

    /**
     * 行情
     */
//    @GET("support/info/announce/listProject")
    @GET("tickers")
    suspend fun getMarketsList(): ResponseData<List<MarketBean>>

    /**
     * 深度
     */
    @GET("depth/{symbol}")
    suspend fun getDepth(
        @Path("symbol") symbol: String
    ): ResponseData<DepthBean>


    /**
     * 成交
     */
    @GET("deals/{symbol}")
    suspend fun getDeals(
        @Path("symbol") symbol: String
    ): ResponseData<List<DealsBean>>

    /**
     * 简介
     */
    @GET("describe/{currency}")
    suspend fun getCurrencyDescribe(
        @Path("currency") currency: String
    ): ResponseData<CurrencyDescribe>
}